package com.tupu.mapper.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tupu.entity.admin.LabelPropertyInfo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PropertyMapper extends BaseMapper<LabelPropertyInfo> {

    //根据本体id 删除属性表
    @Delete("delete from property_list where property_list.label_id=#{label_id};")
    void deleteByLabelId(Long label_id);

    //根据本体id 查询属性表
    @Select("select * from property_list where property_list.label_id=#{label_id};")
    List<LabelPropertyInfo> findByLabelId(Long id);
}
